buildscript {
    ext {
        springBootVersion = '3.1.2'
        springBootDependencyVersion = '1.1.2'
        bot_version = '1.2.0'
    }
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath ("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
    }
}

allprojects {
    group = 'ru.bytedog.oiot.counter'
}

subprojects {
    apply plugin: 'java'

    sourceCompatibility = JavaVersion.VERSION_17

    repositories {
        mavenCentral()
    }

    configurations {
        compileOnly {
            extendsFrom annotationProcessor
        }
    }

    dependencies {
        implementation 'org.apache.commons:commons-lang3:3.12.0'
        compileOnly 'org.projectlombok:lombok:1.18.28'
        annotationProcessor 'org.projectlombok:lombok:1.18.28'
    }

    tasks.named('test') {
        useJUnitPlatform()
    }

}

task printVersionName {
    println bot_version
}
